package com.sujiewon.salesadmin.common.dao;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class CodeDaoImpl implements CodeDao {
	
	@Resource(name="sqlMapClient")
	private SqlMapClient sqlMapClient;

	@SuppressWarnings("unchecked")
	@Override
	public List<HashMap<String, Object>> getCodeListByCodeName(HashMap<String, Object> param) throws SQLException {
		return this.sqlMapClient.queryForList("code.getCodeListByCodeName", param);
	}
	
	
}
